package at.ac.tuwien.dse.health.dashboard.dto;

import at.ac.tuwien.dse.health.entity.MessageType;

import java.io.Serializable;

/**
 * @author Bernhard Nickel
 * @author Gregor Schauer
 * @author Dominik Strasser
 */
public class Notification implements Serializable {

	private MessageType type;

	private String title;

	private String message;

	public Notification(String title, String message) {
		this(MessageType.INFO, title, message);
	}

	public Notification(MessageType type, String title, String message) {
		this.type = type;
		this.title = title;
		this.message = message;
	}

	public String getType() {
		return type.name().toLowerCase();
	}

	public String getTitle() {
		return title;
	}

	public String getMessage() {
		return message;
	}
}
